package top.soulblack.purchasesale.service;

import org.springframework.stereotype.Service;
import top.soulblack.purchasesale.mapper.PurchaseFormMapper;
import top.soulblack.purchasesale.model.PurchaseForm;
import top.soulblack.purchasesale.model.VO.PurchaseFormVO;

import javax.annotation.Resource;
import java.util.List;

/**
 * create by 小川
 */
@Service
public class PurchaseFormService {

    @Resource
    private PurchaseFormMapper purchaseFormMapper;

    public List<PurchaseForm> selectAll() {
        return purchaseFormMapper.selectAll();
    }

    public List<PurchaseFormVO> selectClear(){return purchaseFormMapper.selectClear();}

    public List<PurchaseFormVO> selectForUnit(){return purchaseFormMapper.selectForUnit();}

    public List<PurchaseFormVO> selectClearByTime(String startTime, String endTime){return purchaseFormMapper.selectClearByTime(startTime,endTime);}
}
